#include "stdafx.h"
#include "Aspector.h"

template<int index>
int __stdcall AspectorInvoke(CAspectorObject* pObject)
{
	int returnValue = 0;
	va_list parametersStack = NULL;
	va_start(parametersStack,pObject);
	returnValue = CAspector::Instance()->Invoke(pObject,index,parametersStack);
	va_end(parametersStack);
	return returnValue;
}

#define DEFINE_INVOKE_FUNC(index) this->VFuncs[index] = AspectorInvoke<##index>;

Vtlb::Vtlb()
{
#include "InvokeMacros.h"
}

